home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3052 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: ws180223.kbu.switzerland.attgis.com!elaroche
  2. From: elaroche@smtpadc.switzerland.attgis.com (Eric Laroche)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Algorithm to convert from 24 bits to 8 bits
  5. Message-ID: <elaroche.217.0014B60D@smtpadc.switzerland.attgis.com>
  6. Date: 24 Jan 96 20:42:31 GMT
  7. References: <4dl1f4$mea@centre.univ-orleans.fr>
  8. Sender: news@ncrcha.switzerland.attgis.com
  9. Organization: AT&T Global Information Solutions
  10. X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
  11.  
  12. In article <4dl1f4$mea@centre.univ-orleans.fr> phlatrem@cnrs-orleans.fr 
  13. (Philippe LATREMOLIERE) writes:
  14.  
  15. >Where can I find an algorithm which do the following :
  16. >take a 24 bits image (reg, green, blue array, each one of 8 bits) and return
  17. >an image with indexes on a palette of 256 colors (8 bits) ?
  18.  
  19. You may want to have a look at the 'xv' source code (version 2.x, which is 
  20. in public domain according to URL:
  21.     http://www.cica.indiana.edu/cica/faq/image_convert/convert.xv.html).
  22.  
  23. xv, written by John Bradley, can display and convert jpeg (24 bit), gif 
  24. (8 bit) and many more graphic formats.
  25.  
  26.  
  27. Another platform-independent conversion package 'Independent JPEG Group's 
  28. JPEG Library' is mentioned in URL:
  29.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/
  30.         graphics/fileformats-faq/part2/faq-doc-11.html
  31.  
  32. More references:
  33.     http://www.cica.indiana.edu/graphics/image.formats.html
  34.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/
  35.         graphics/fileformats-faq/top.html
  36.  
  37. --Eric
  38.  
  39. ----
  40. Eric Laroche -- elaroche@smtpadc.switzerland.attgis.com, laroche@access.ch
  41.